package com.theaf.basemodule.common.dto.mesTemplate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@ApiModel("消息模版信息")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MesTemplateDTO {
    @ApiModelProperty("模版id,新增不传，修改必传")
    private Long id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("编码")
    private String code;
    @ApiModelProperty("分类")
    private Integer type;
    public static final int TYPE_NOTE = 1;
    public static final int TYPE_WEIXIN = 2;
    public static final int TYPE_SITE = 3;
    @ApiModelProperty("周期表达式")
    private String cron;
    @ApiModelProperty("状态(1启用2禁用)")
    private Integer status;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("创建人")
    private String creater;
    @ApiModelProperty("修改时间")
    private Date updateTime;
    @ApiModelProperty("修改人")
    private String updater;
    @ApiModelProperty("通知范围集合")
    private List<NotifyScopeDTO> notifyScopeDtos;
    @ApiModelProperty("消息模版-途径")
    private List<TemplateWayDTO> templateWayDtos;
}
